// 获取32位随机字串
export function getString32() {
    var len = 32; //  32长度
    var radix = 16; //  16进制
    var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(
      ""
    );
    var string32 = [],
      i;
    radix = radix || chars.length;
    if (len) {
      for (i = 0; i < len; i++) string32[i] = chars[0 | (Math.random() * radix)];
    } else {
      var r;
      string32[8] = string32[13] = string32[18] = string32[23] = "-";
      string32[14] = "4";
      for (i = 0; i < 36; i++) {
        if (!string32[i]) {
          r = 0 | (Math.random() * 16);
          string32[i] = chars[i == 19 ? (r & 0x3) | 0x8 : r];
        }
      }
    }
    return string32.join("");
  }
